package com.wframe.project.jnd.services;

import java.util.List;
import java.util.Map;

import com.frame.database.JdataBean;
import com.frame.database.PageResult;
import com.wframe.project.jnd.vo.PriceBeanVo;

public interface PurchaseTempService {

    public PageResult queryList(String userid, int size, int pageno);

    public PageResult queryPlanProduct(String panid, String like, int size, int pageno);

    public String saveBuyplan(JdataBean bean) throws Exception;

    public void delBuyplan(String userid, String id);

    public JdataBean getBuyplan(String userid, String id);

    public void addBuyplanProduct(String userid, String panid, List<PriceBeanVo> prices);

    public void delBuyplanProduct(String userid, String panid, String priceid);

    public PageResult queryWebProduct(String like, int size, int pageno);

    public void delRemin(String panid);

    Object savePurchaseTemplate(Map map);

    PageResult findTemplateProducts(String id, int pageSize, int pageNo);

    PageResult findTemplateProducts(String userid, String id, int pageSize, int pageNo);

    List<JdataBean> findPlan();

    PageResult findWebProducts(String userId, String like, int pageSize, int pageNo);

    void updateById(Map columnMap, Object id);

    void updateBuyplanProduct(PriceBeanVo bean);

    boolean checkOwned(String panid, Object productid);
}
